let {getContent} = require('./getContent.js');
let {getInfo} = require('./getInfo.js');
let {getItem} = require('./getItem.js');

let bookId = [
    1368,
    1463,
    1446,
    1424,
    1427,
    1261,
    1398,
    1321,
    1355,
    1349,
    1372,
    1319,
    1277,
    1040,
    1366,
    1352,
    1348,
    1333,
    1327,
    1347,
    1266,
    1291,
    1061,
    1323,
    1300,
    1260,
    1257,
    1185,
    1273,
    1286,
    1276,
    1118,
    1092,
    1221,
    1249,
    1226,
    1223,
    1255,
    1187,
    1234,
    1225,
    1163,
    1144,
    1218,
    1121,
    1116,
    1097,
    1069,
    1087,
    1082,
    962,
    1037,
    1039,
    1026,
    874,
    944,
    887,
    845,
    947,
    908,
    878,
    794,
    851,
    790,
    773,
    903,
    847,
    562,
    766,
    841,
    770,
    885,
    842,
    502,
    810,
    237,
    108,
    795,
    788,
    800,
    753,
    772,
    771,
    486,
    758,
    747,
    26,
    106,
    600,
    628,
    82,
    362,
    127,
    109,
    130,
    614,
    629,
    160,
    27,
];


function start(arr) {
    arr.forEach(function (v) {
        getInfo(v).then(function (res) {
            let get = new getItem(res, v, getContent);
        });
    })

}
start(bookId);